home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Master Visual Basic 3
/
Master Visual Basic 3 (SAMS Publishing) (1994).ISO
/
mvprog
/
original
/
ch07
/
myclock.bas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
BASIC Source File
|
1994-03-04
|
589 b
|
26 lines
Option Explicit
Declare Sub SetWindowPos Lib "User" (ByVal hWnd As Integer, ByVal hWndInsertAfter As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer)
Const SWP_NOSIZE = &H1
Const SWP_NOMOVE = &H2
Const SWP_NOACTIVATE = &H10
Sub Main ()
Dim Para
' Display the form
frmMyClock.Show
Do While DoEvents()
Para = SWP_NOMOVE Or SWP_NOSIZE Or SWP_NOACTIVATE
SetWindowPos frmMyClock.hWnd, 0, 0, 0, 0, 0, Para
frmMyClock.txtClock.Text = Time$
Loop
End Sub